<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
    <title>XachDo.vn | Trao niềm tin nhận niềm vui</title>
    <meta charset="utf-8">
    <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/front/css/style.css">
    <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/front/css/chosen.css">
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/front/js/jquery.slimscroll.min.js"></script>
    <script type="text/javascript" src='<?php echo Yii::app()->theme->baseUrl; ?>/front/js/jquery.customSelect.min.js'></script>
    <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/front/js/customCheckbox.js"></script>

    <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/front/js/jquery.fancybox.pack.js"></script>
    <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/front/css/fancybox/jquery.fancybox.css" type="text/css" media="screen" />
    <script type="text/javascript">
        $(function () {
            $(".position_main").height($(window).height());
            $('.content_text').slimScroll({
                height:'550px',
                railVisible: true,
                color:'#646673',
                size:'12px',
                railOpacity: 1,
                alwaysVisible: true
            });

        });
        var status = '';
        function startTime()
        {
            var today = new Date();
            var h = today.getHours();
            if(h >= 6 && h < 12 && status != "sang")
            {
                status = 'sang';
                document.getElementById('bd_background').innerHTML = "<img class='st_maina' src='<?php echo Yii::app()->theme->baseUrl ?>/front/images/buoisang.jpg' alt=''>";
            }
            else if(h >= 12 && h < 18 && status != "trua")
            {
                status = 'trua';
                document.getElementById('bd_background').innerHTML = "<img class='st_main' src='<?php echo Yii::app()->theme->baseUrl ?>/front/images/trua.jpg' alt=''>";
            }
            else if(h >= 18 && h <= 23 && status !== 'toi')
            {
                status = 'toi';
                document.getElementById('bd_background').innerHTML = "<img class='st_main' src='<?php echo Yii::app()->theme->baseUrl ?>/front/images/toi.jpg' alt=''>";
            }
            else if(h >= 0 && h < 6 && status != "toi2")
            {
                status = 'toi2';
                document.getElementById('bd_background').innerHTML = "<img class='st_main' src='<?php echo Yii::app()->theme->baseUrl ?>/front/images/toi2.jpg' alt=''>";
            }
            t = setTimeout(function(){startTime();},1000);
        }
    </script>
</head>
<body onload="startTime()">
<div id="wrapper">

    <div id="bd_background">
    </div>
    <div class="st_overlay"></div>
    <div class="position_main">
        <header class="fl">
            <?php $this->widget('MenuWidget');?>
        </header>
        <div class="main_ct fr">
            <div class="header_main fr">
                <?php $this->widget('PanelWidget'); ?>
            </div>
            <div class="clearfix"></div>
            <?php echo $content; ?>
        </div>
    </div>
    <div class="cleafix"></div>
</div>
<div style="display:none">
    <div id="contact">
        <form action="<?php echo Yii::app()->createUrl('supportticket/create'); ?>" method="POST" class="p_ques">
            <h3>Đăng câu hỏi</h3>
            <textarea class="question" name="SupportTicket[content]" placeholder="Nhập câu hỏi của bạn vào đây " ></textarea>
            <input type="submit" value="Đăng ngay" class="btn_ques" />
        </form>
    </div>
</div>
</body>
</html>